<template>
    <FormItem :option="option" :index="index" />
</template>
<script setup>
import { shallowRef } from "vue";
import Element from "./index.js";

const emit = defineEmits(["DeleteChild"]);
const props = defineProps(["option", "index"]);

const FormItem = shallowRef();

if (props.option.ViewType == "UI") {
    FormItem.value = Element.UI[props.option.Id].EditView;
}
</script>
<style scoped></style>
